-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Making S2gate of lab and lab_dev the same #548
base: develop
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #548 +/- ##
===========================================
- Coverage 90.57% 90.55% -0.02%
===========================================
Files 102 102
Lines 6183 6185 +2
===========================================
+ Hits 5600 5601 +1
- Misses 583 584 +1
Continue to review full report in Codecov by Sentry.
|
@@ -39,7 +39,7 @@ class TwoModeSqueezedVacuum(Ket): | |||
>>> from mrmustard.lab_dev import TwoModeSqueezedVacuum, S2gate, Vacuum | |||
|
|||
>>> state = TwoModeSqueezedVacuum(modes=[0, 1], r=0.3, phi=0.2) | |||
>>> assert state == Vacuum([0, 1]) >> S2gate([0, 1], r=0.3, phi=0.2) | |||
>>> assert state == Vacuum([0, 1]) >> S2gate([0, 1], r=-0.3, phi=0.2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just confirming this means the squeezing parameter for S2gate
is the negative of TwoModeSqueezedVacuum
?
Context:
there is a discrepancy between lab and lab_dev in defining
S2gate
: squeezing parameter of one is the negative of the other.Description of the Change:
Making
S2gate
of lab and lab_dev compatible by changing the lab_dev one.Benefits:
Consistency.
Possible Drawbacks:
None
Related GitHub Issues:
None